<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<link href="<c:url value="/themes/${sessionScope.loginUser.theme}/css.css"/>" type="text/css" rel=stylesheet>
<fmt:message key="menu_knowledge_label1" var="menu_knowledge_label1"/>
<fmt:message key="menu_knowledge_label2" var="menu_knowledge_label2"/>
<fmt:message key="menu_knowledge_label3" var="menu_knowledge_label3"/>
<fmt:message key="menu_knowledge_label4" var="menu_knowledge_label4"/>
<fmt:message key="menu_knowledge_label5" var="menu_knowledge_label5"/>
<fmt:message key="menu_knowledge_label6" var="menu_knowledge_label6"/>
<fmt:message key="menu_knowledge_label7" var="menu_knowledge_label7"/>
<fmt:message key="knowledgeCatalogyListTree_label2" var="knowledgeCatalogyListTree_label2"/>
<fmt:message key="knowledgeCatalogyListTree_label3" var="knowledgeCatalogyListTree_label3"/>
<fmt:message key="knowledgeCatalogyListTree_label4" var="knowledgeCatalogyListTree_label4"/>
<fmt:message key="knowledgeCatalogyListTree_label5" var="knowledgeCatalogyListTree_label5"/>
<fmt:message key="knowledgeCatalogyListTree_label6" var="knowledgeCatalogyListTree_label6"/>
<fmt:message key="knowledgeCatalogyListTree_label7" var="knowledgeCatalogyListTree_label7"/>
<fmt:message key="knowledgeCatalogyListTree_label8" var="knowledgeCatalogyListTree_label8"/>
<fmt:message key="knowledgeCatalogyListTree_label9" var="knowledgeCatalogyListTree_label9"/>
<fmt:message key="knowledgeCatalogyListTree_label10" var="knowledgeCatalogyListTree_label10"/>
<fmt:message key="knowledges_list_label33" var="knowledges_list_label33"/>
<fmt:message key="knowledges_list_label34" var="knowledges_list_label34"/>
<fmt:message key="knowledges_list_label35" var="knowledges_list_label35"/>
<fmt:message key="knowledges_list_label36" var="knowledges_list_label36"/>
<fmt:message key="knowledgeCatalogy_list_label22" var="knowledgeCatalogy_list_label22"/>
<link rel="StyleSheet" href="../../themes/${sessionScope.loginUser.theme}/dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="../../scripts/dtree/dtree.js"></script>
<span id=fun_btn width="100%">

<TABLE width="100%" height="29" border=0 cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD width=2><img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29"></TD>
				<TD class="${sessionScope.knowledge.menuType==''?'selected_1':'unselected_1'}" id=span_box_0_1 onclick=showBox(0) width=2>&nbsp;</TD>
				<TD class="${sessionScope.knowledge.menuType==''?'selected_2':'unselected_2'}" id=span_box_0_2 onclick=showBox(0) height=26 title="${menu_knowledge_label2}">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/knowledge_home.gif" width="18" height="21">
				</TD>
				<TD class="${sessionScope.knowledge.menuType==''?'selected_3':'unselected_3'}" id=span_box_0_3 onclick=showBox(0) width=4></TD>
				<td width="2" height="29">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29">
				</td>


				<TD class="${sessionScope.knowledge.menuType=='home'?'selected_1':'unselected_1'}" id=span_box_1_1 onclick=showBox(1) width=4>&nbsp;</TD>
				<TD class="${sessionScope.knowledge.menuType=='home'?'selected_2':'unselected_2'}" id=span_box_1_2 onclick=showBox(1) height=26 title="${menu_knowledge_label3}">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_ico1.gif" width="18" height="21">
				</TD>
				<TD class="${sessionScope.knowledge.menuType=='home'?'selected_3':'unselected_3'}" id=span_box_1_3 onclick=showBox(1) width=4></TD>
				<td width="2" height="29">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29">
				</td>


				<TD class="${sessionScope.knowledge.menuType=='myknowledge'?'selected_1':'unselected_1'}" id=span_box_3_1 onclick=showBox(3) width=4></TD>
				<TD class="${sessionScope.knowledge.menuType=='myknowledge'?'selected_2':'unselected_2'}" id=span_box_3_2 onclick=showBox(3) title="${menu_knowledge_label4}">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_ico3.gif" width="18" height="21">
				</TD>
				<TD class="${sessionScope.knowledge.menuType=='myknowledge'?'selected_3':'unselected_3'}" id=span_box_3_3 onclick=showBox(3) width=4>&nbsp;</TD>
				<td width="2" height="29">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29">
				</td>

				<c:if test="${audit==1}">
				<TD class="${sessionScope.knowledge.menuType=='audit'?'selected_1':'unselected_1'}" id=span_box_2_1 onclick=showBox(2) width=4></TD>
				<TD class="${sessionScope.knowledge.menuType=='audit'?'selected_2':'unselected_2'}" id=span_box_2_2 onclick=showBox(2) title="${menu_knowledge_label5}">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_ico2.gif" width="18" height="21">
				</TD>
				<TD class="${sessionScope.knowledge.menuType=='audit'?'selected_3':'unselected_3'}" id=span_box_2_3 onclick=showBox(2) width=4>&nbsp;</TD>
				<td width="2" height="29">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29">
				</td>
				</c:if>

				<c:if test="${manage==1}">
				<TD class="${sessionScope.knowledge.menuType=='types'?'selected_1':'unselected_1'}" id=span_box_4_1 onclick=showBox(4) width=4></TD>
				<TD class="${sessionScope.knowledge.menuType=='types'?'selected_2':'unselected_2'}" id=span_box_4_2 onclick=showBox(4) title="${menu_knowledge_label6}">
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_ico4.gif" width="18" height="21">
				</TD>
				<TD class="${sessionScope.knowledge.menuType=='types'?'selected_3':'unselected_3'}" id=span_box_4_3 onclick=showBox(4) width=4>&nbsp;</TD>
				<TD width=2>
				<img src="../../themes/${sessionScope.loginUser.theme}/images/carte_background.gif" width="2" height="29">
				</TD>
				</c:if>
			</TR>
		</TBODY>
	</TABLE>
</span>
<form id="mapfrom" method="post">
</form>
<!-- 前面一堆是标签页头  -->
<TABLE id=fun_btn_box_0 height="100%" width=100% align=center valign="top" style="DISPLAY: ${(sessionScope.knowledge.menuType=='nav' || sessionScope.knowledge.menuType=='')?'':'none'}">
<tr>
  	<td valign="top" width="100%" height="100%">
  	<!-- 将知识中心首页的左边菜单改回div，不采用局部刷新，iframe会导致datatables列表插件的动画效果很卡  -->
  		<div class="dtree">
  		 <script type="text/javascript">
  			  d = new dTree('d');
	   // alert('${param.cid}' +"====" + '${knowledgeCatalogy.id}');
		d.selected = '${empty param.cid?knowledgeCatalogy.id:param.cid}';
		<c:forEach var="knowCatalogy" items="${knowledgeCatalogysNav}">
		var url="";
		var name='<span style="color:#999"><spring:escapeBody javaScriptEscape="true">${fn:escapeXml(knowCatalogy.name)}</spring:escapeBody></span>';
		//if(${!empty knowCatalogy.createdate})
		if(${knowCatalogy.isAuth==true})
		{
			 url="javascript:showDetail1('../../modules/knowledge/knowledges.do?method=list&cid=${knowCatalogy.id}&current_id=${param.current_id}&kmdomain_id=${param.kmdomain_id}&kmprop_id=${param.kmprop_id}&kmreader_id=${param.kmreader_id}&kmdept_id=${param.kmdept_id}','${knowCatalogy.id}')";
		     name='<spring:escapeBody javaScriptEscape="true">${fn:escapeXml(knowCatalogy.name)}</spring:escapeBody>';
		  //url="javascript:showDetail('firstframe_main_area','../../modules/knowledge/knowledges.do?method=list&cid=${knowCatalogy.id}&current_id=${param.current_id}&kmdomain_id=${param.kmdomain_id}&kmprop_id=${param.kmprop_id}&kmreader_id=${param.kmreader_id}&kmdept_id=${param.kmdept_id}','${knowCatalogy.id}')";
		}
	      d.add('${knowCatalogy.id}',
			  '${knowCatalogy.pid==0?-1:knowCatalogy.pid}',
			 name,
			  url,
			  '','','','',false);
	    </c:forEach>
		document.write(d);
		d.openTo('${empty param.cid?knowledgeCatalogy.id:param.cid}',false);

		function showDetail(divid, url,cid){
			 var array = [];
			 var args =[];
			 array[0] = parent.kmnav;
			 args[0] = null;
			 if(parent.queryKn){
				 array[1] = parent.queryKn;
				 args[1] = [cid];
			 }
		     window.parent.refleshLocalArea(divid,url + '&page=right',array,args);
		     window.parent.document.getElementById("oldcid").value=cid;
		}
		
		function showDetail1(url,cid){
			var form = document.getElementById("mapfrom");
			form.action=url;
			form.submit();
		}
	</script>
  		</div>
  		
		<%--<iframe id="navtreeiframe" src='<c:url value="/modules/knowledge/knowledgeCatalogy.do?method=navtree&cid=${param.cid}&search_id=${param.search_id}&current_id=&kmdomain_id=${param.kmdomain_id}&kmprop_id=${param.kmprop_id}&kmreader_id=${param.kmreader_id}&kmdept_id=${param.kmdept_id}&openwin=true" />'
			height="95%" width="100%" frameborder="0" allowTransparency="true" scolling="yes"
			marginwidth="0" marginheight="0" class="contentBox_menus" style="border:0px;margin:0px;padding:0px;"></iframe>
	--%></td>
</tr>
<tr>
	<td valign="bottom" height="20">
	</td>
</tr>
</TABLE>
<input type="hidden" name="oldcid" value="0" />
<TABLE id=fun_btn_box_1 width=100% style="DISPLAY: ${sessionScope.knowledge.menuType=='home'?'':'none'}" align=center>
<TR>
	<TD class=td_tab_backdrop vAlign=top>
			<div class="dtree">
    <!-- p style="float:right;"><a href="<c:url value="/modules/knowledge/knowledgeCatalogyTypes.do?method=mapNavigation"/>">${knowledgeCatalogy_list_label22}</a></p-->
	<script type="text/javascript">

	 <!--

		d1 = new dTree('d1');
	 	d1.add(0,-1,'${menu_knowledge_label3}');
		<c:forEach items="${knowledgeCatalogyTypes}" var="knowledgeCatalogyType">
	/**    
			<c:if test="${knowledgeCatalogyType.id==1 || knowledgeCatalogyType.id==2 || knowledgeCatalogyType.id==3}">
			d1.add(${knowledgeCatalogyType.id},0,'${knowledgeCatalogyType.name}');
			</c:if>
			<c:if test="${knowledgeCatalogyType.id!=1 && knowledgeCatalogyType.id!=2 && knowledgeCatalogyType.id!=3}">
				d1.add(${knowledgeCatalogyType.id},${knowledgeCatalogyType.type},'${knowledgeCatalogyType.name}','<c:url value="/modules/knowledge/knowledgeCatalogyTypes.do?method=returnMapNavigation&typeid=${knowledgeCatalogyType.id}"/>','${knowledgeCatalogyType.name}','_self','','',false);
			</c:if>
    */
            <c:choose>
				<c:when test="${knowledgeCatalogyType.pid==0}">
					d1.add('${knowledgeCatalogyType.id}',
				  '${knowledgeCatalogyType.pid}',
				  '<spring:escapeBody javaScriptEscape='true'>${fn:escapeXml(knowledgeCatalogyType.name)}</spring:escapeBody>');
				</c:when>
				<c:otherwise>
					d1.add('${knowledgeCatalogyType.id}',
				  '${knowledgeCatalogyType.pid}',
				  '<spring:escapeBody javaScriptEscape='true'>${fn:escapeXml(knowledgeCatalogyType.name)}</spring:escapeBody>',
				  /**'<c:url value="/modules/knowledge/knowledges.do?method=catalogyTypeMap&typeid=${knowledgeCatalogyType.id}"/>',*/
				  '<c:url value="/modules/knowledge/knowledgeCatalogyTypes.do?method=returnMapNavigation&typeid=${knowledgeCatalogyType.id}"/>',
				  '<spring:escapeBody javaScriptEscape='true'>${fn:escapeXml(knowledgeCatalogyType.name)}</spring:escapeBody>',
				  '_self','','',false);
				</c:otherwise>
            </c:choose>
     
     			
		</c:forEach>
		d1.selected = ${sessionScope.knowledge.mapSelected==null?'0':sessionScope.knowledge.mapSelected};
		document.write(d1);
      //-->
	</script>
	</div>
		</TD>
</tr>
</TABLE>

<TABLE id=fun_btn_box_3 style="DISPLAY: ${sessionScope.knowledge.menuType=='myknowledge'?'':'none'}" height=220 width=100% align=center>
<TBODY>
	<TR>
		<TD class=td_tab_backdrop vAlign=top>
			<div class="dtree">
	<p></p>
	<script type="text/javascript">

	 <!--

		d2 = new dTree('d2');
	 	d2.add(0,-1,'${menu_knowledge_label7}');
        d2.add(1,0,'${knowledgeCatalogyListTree_label7}','<c:url value="/modules/knowledge/knowledgeShare.do?method=queryList"/>','${knowledgeCatalogyListTree_label7}','_self','../../themes/${sessionScope.loginUser.theme}/images/knowdge_share.png');
	 	d2.add(-2,0,'${knowledgeCatalogyListTree_label2}','<c:url value="/modules/knowledge/knowledges.do?method=issue&ec_s_createdate=desc"/>','${knowledgeCatalogyListTree_label2}','_self','../../themes/${sessionScope.loginUser.theme}/images/knowleage_me.gif');
		d2.add(-3,0,'${knowledgeCatalogyListTree_label3}','<c:url value="/modules/knowledge/knowledgeFavor.do?method=list&ec_s_favordate=desc"/>','${knowledgeCatalogyListTree_label3}','_self','../../themes/${sessionScope.loginUser.theme}/images/knowleage_save.gif');
		d2.add(-4,0,'${knowledgeCatalogyListTree_label4}','<c:url value="/modules/knowledge/knowledgeBorrow.do?method=list&ec_s_createdate=desc"/>','${knowledgeCatalogyListTree_label4}','_self','../../themes/${sessionScope.loginUser.theme}/images/knowleage_borrow.gif');
		<c:if test="${!empty knowledgeCatalogyfavors}">
		d2.add(-10,0,'${knowledgeCatalogyListTree_label5}','','${knowledgeCatalogyListTree_label6}','','../../themes/${sessionScope.loginUser.theme}/images/knowleage_navigation.gif');
		<c:forEach items="${knowledgeCatalogyfavors}" var="knowledgeCatalogyfavor">
		d2.add(${knowledgeCatalogyfavor.knowledgeCatalogy.id*-1-10},-10,'<c:out value="${knowledgeCatalogyfavor.knowledgeCatalogy.name}" />','knowledges.do?method=list&cid=${knowledgeCatalogyfavor.knowledgeCatalogy.id}&menuType=myknowledge','${knowledgeCatalogyfavor.knowledgeCatalogy.name}','_self');
		</c:forEach>
		</c:if>

		d2.selected = ${sessionScope.knowledge.mySelected==null?'0':sessionScope.knowledge.mySelected};
		document.write(d2);
		d2.openTo(-10,false);
      //-->
	</script>
	</div>
		</TD>
	</TR>
</TBODY>
</TABLE>

<c:if test="${audit==1}">

<TABLE id=fun_btn_box_2 style="DISPLAY: ${sessionScope.knowledge.menuType=='audit'?'':'none'}" height=220 width=100%
  align=center>
  <TBODY>
  <TR>
	<TD class=td_tab_backdrop vAlign=top>
		<div class="dtree">
	<p></p>
	<script type="text/javascript">

	 <!--

		d3 = new dTree('d1');
	 	d3.add(0,-1,'${menu_knowledge_label5}');
	 	<c:forEach items="${menus}" var="menu">
		<c:if test="${menu.id==130 || menu.id==129}">
		d3.add(${menu.id},0,'<spring:message text="${menu.name}" code="menu_${menu.id}"/>','${menu.url}','<spring:message text="${menu.name}" code="menu_${menu.id}"/>','_self');
		</c:if>
		</c:forEach>
		d3.selected = ${sessionScope.knowledge.auditSelected==null?'0':sessionScope.knowledge.auditSelected};
		document.write(d3);
      //-->
	</script>
	</div>
	</TD>
</TR></TBODY></TABLE>
</c:if>

<c:if test="${manage==1}">
<TABLE id=fun_btn_box_4 style="DISPLAY: ${sessionScope.knowledge.menuType=='types'?'':'none'}" height=220 width=100%
  align=center>
  <TBODY>
  <TR>
	<TD class=td_tab_backdrop vAlign=top>
	<div class="dtree">
	<p></p>
	<script type="text/javascript">

	 <!--

		d4 = new dTree('d4');
	 	d4.add(0,-1,'${menu_knowledge_label6}');
	 	<c:forEach items="${menus}" var="menu">
		<c:if test="${menu.id==131 || menu.id==601 || menu.id==1043}">
		d4.add(${menu.id},0,'<spring:message text="${menu.name}" code="menu_${menu.id}"/>','${menu.url}&isadmin=${isadmin}','<spring:message text="${menu.name}" code="menu_${menu.id}"/>','_self');		
		</c:if>
		<c:if test="${menu.id==1045}">
		d4.add(${menu.id},0,'<spring:message text="${menu.name}" code="menu_${menu.id}"/>','${menu.url}','<spring:message text="${menu.name}" code="menu_${menu.id}"/>','_self','','',true);	
		d4.add(-10,${menu.id},'${knowledgeCatalogyListTree_label8}','${menu.url}?method=onDimensionStatistics','${knowledgeCatalogyListTree_label8}','_self','<c:url value="/scripts/dtree/img/empty01.gif"/>',false,false);	
		d4.add(-20,${menu.id},'${knowledgeCatalogyListTree_label9}','${menu.url}?method=onDeptsStatistics','${knowledgeCatalogyListTree_label9}','_self','<c:url value="/scripts/dtree/img/empty01.gif"/>',false,false);	
		d4.add(-30,${menu.id},'${knowledgeCatalogyListTree_label10}','${menu.url}?method=onUsersStatistics','${knowledgeCatalogyListTree_label10}','_self','<c:url value="/scripts/dtree/img/empty01.gif"/>',false,false);	
		</c:if>
		</c:forEach>
		d4.selected = ${sessionScope.knowledge.typesSelected==null?'0':sessionScope.knowledge.typesSelected};
		document.write(d4);
      //-->
	</script>
	</div>
	</TD>
</TR></TABLE>
</c:if>




<SCRIPT type=text/javascript>
	var obj_box,obj_span;

	function showBox(i) {
		if(i==0){
			location.href='<c:url value="/modules/knowledge/knowledges.do?method=knowmap&cid=0&showBox=0"/>';
			return;
		}
		$('fun_btn_box_0').style.display='none';
		for(var j=0;j<=4;j++)
		{
			obj_box=$('fun_btn_box_'+j);
			if(obj_box){
				obj_box.style.display='none';

				obj_span=$('span_box_'+j+'_1');
				obj_span.className='unselected_1';
				obj_span=$('span_box_'+j+'_2');
				obj_span.className='unselected_2';
				obj_span=$('span_box_'+j+'_3');
				obj_span.className='unselected_3';
			}
		}
		obj_box=$('fun_btn_box_'+i);
		obj_box.style.display='';

		obj_span=$('span_box_'+i+'_1');
		obj_span.className='selected_1';
		obj_span=$('span_box_'+i+'_2');
		obj_span.className='selected_2';
		obj_span=$('span_box_'+i+'_3');
		obj_span.className='selected_3';

		if(i==1){
			location.href='<c:url value="/modules/knowledge/knowledgeCatalogyTypes.do?method=mapNavigation" />';
		}
	}

	function moveknowledges(){
		if (!atleaseOneCheck()){
			alert('${knowledges_list_label33}');
			return false;
		}else{
			var cid=showModalDialog("<c:url value="/modules/knowledge/knowledges.do?method=navtree&entry_id=&search_id=&openwin=true" />","","dialogWidth:200px;DialogHeight=290px;status:yes;resizable: Yes;Minimize=yes;Maximize=yes;");
			if(cid==null || cid=="")return false;
			if (confirm("${knowledges_list_label34}"))
		    {
				var json = getCheckJsonObj(jQuery("#dTGrid_ tbody tr input[name='itemlist']"));
		        if(document.getElementById("oldcid").value=='0')
		        {
			        var url = '<c:url value="/modules/knowledge/knowledges.do?method=moveKnowledge&flag=list" />'+'&oldcid=${param.cid}&cid='+cid;
		        	jQuery.post(url,json,function(txt){
		        		alert("移动成功！");
		        		initTable('true');
		        		jQuery("#allselect").attr("checked",false);
		        	});
		        }else
		        {
		        	 var url = '<c:url value="/modules/knowledge/knowledges.do?method=moveKnowledge&flag=list" />'+'&oldcid='+document.getElementById("oldcid").value+'&cid='+cid;
			        	jQuery.post(url,json,function(txt){
			        		initTable('true');
			        		jQuery("#allselect").attr("checked",false);
			        	});
		        }
		    }
		}
		return true;
	}

	function copyknowledges(){
		if (!atleaseOneCheck()){
			alert('${knowledges_list_label35}');
			return false;
		}else{
			var cid=showModalDialog("<c:url value="/modules/knowledge/knowledges.do?method=navtree&entry_id=&search_id=&openwin=true" />","","dialogWidth:200px;DialogHeight=290px;status:yes;resizable: Yes;Minimize=yes;Maximize=yes;");
			if(cid==null || cid=="")return false;
			if (confirm("${knowledges_list_label36}"))
		    {
				var json = getCheckJsonObj(jQuery("#dTGrid_ tbody tr input[name='itemlist']"));
		         if(document.getElementById("oldcid").value=='0')
		        {
				      var url = '<c:url value="/modules/knowledge/knowledges.do?method=copyKnowledge&flag=list" />'+'&oldcid=${param.cid}&cid='+cid;
		        	 jQuery.post(url,json,function(txt){
		        	 		alert("复制成功！");
			        		initTable('true');
			        		jQuery("#allselect").attr("checked",false);
			        	});
		        }
		        else{
	        	   	 var url = '<c:url value="/modules/knowledge/knowledges.do?method=copyKnowledge&flag=list" />'+'&oldcid='+document.getElementById("oldcid").value+'&cid='+cid;
		        	 jQuery.post(url,json,function(txt){
			        		initTable('true');
			        		jQuery("#allselect").attr("checked",false);
			        	});
		        }  
		    }
		}
		return true;
	}
	
	function toggleMenu(){
	  if(jQuery('#leftmenu').css('display')=='none')
			{
				showTogole();
				
			}
			else
			{		   
				hideTogole();
				
			}
	}

	function showTogole()
	{
	    jQuery('#leftmenu').show();
		jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_left.gif");
	    Set_Cookie("knowledges_toggle", 'show', false, false, false, false);
	}
	
	function hideTogole()
	{
	    jQuery('#leftmenu').hide();
		jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_right.gif");
		Set_Cookie("knowledges_toggle", 'hide', false, false, false, false);
	    
	}
	
	jQuery().ready(function(){
		 <c:if test="${cookie.knowledges_toggle.value==null || cookie.knowledges_toggle.value=='hide' || param.method=='knowmap' }">
	      <c:choose>
				<c:when test="${param.showBox == 0}">
				</c:when>
				<c:otherwise>
					 hideTogole();  //如果cookie记录是收缩状态或者是进入首页，都隐藏起来
				</c:otherwise>
            </c:choose>
	     </c:if> 
         <c:set var="isShowAdmin" value="false"/>
         <c:forEach items="${menus}" var="menu">
			 <c:if test="${menu.id==131}">
				 <c:set var="isShowAdmin" value="true"/>
			 </c:if>
		 </c:forEach>   
		 <c:choose>
				<c:when test="${isShowAdmin == true}">
					jQuery("#knowledge_admin").show();
					jQuery("#knowledge_admin_line").show();
				</c:when>
				<c:otherwise>
					jQuery("#knowledge_admin").hide();
					jQuery("#knowledge_admin_line").hide();
				</c:otherwise>
            </c:choose>
		 <c:choose>
				<c:when test="${audit==1}">
					jQuery("#knowledge_audit").show();
					jQuery("#knowledge_audit_line").show();
				</c:when>
				<c:otherwise>
					jQuery("#knowledge_audit").hide();
					jQuery("#knowledge_audit_line").hide();
				</c:otherwise>
            </c:choose>
         <c:choose>
         	<c:when test="${compassSearchSwitch == true}">
					jQuery("#knowledge_compassSearch_toDo").show();
					jQuery("#knowledge_compassSearch_toDo_line").show();
				</c:when>
				<c:otherwise>
					jQuery("#knowledge_compassSearch_toDo").hide();
					jQuery("#knowledge_compassSearch_toDo_line").hide();
				</c:otherwise>
         </c:choose>
	});
	
	
</SCRIPT>
